<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        //&& 两侧都为true 结果才是true
        console.log(3 > 5 && 3 > 2);
        console.log(3 < 5 && 3 > 2);

        //|| 只要一侧都为true 结果才是true
        console.log(3 > 5 || 3 > 2);

        //! 
        console.log(!true);



        var num = 7;
        var str = '我爱你中国  ';
        console.log(str.length > num || num >= 7);
        console.log(!(str.length > num || num >= 7));
    </script>
</head>

<body>

</body>

</html>